package com.caiheng.api.entity.wxuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "user_integral_record")
public class UserIntegralRecord implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer propertyId;

    private Integer estateId;

    //小区名称
    private String estateName;

    private String payNo;

    private Integer userId;

    private String phoneNum;

    private String nickName;

    private Long orderId;

    private Double integral;

    private Double usedIntegral;

    private Integer state;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 积分的获取类型    1 - 购买商品、商家服务获取  2 -- 缴纳物业费使用(物业费订单)
     * 3 - 单独使用积分（支付物业费）  4 - 新用户注册赠送     5 - 购买优惠券
     */
    private Integer getType;

    /**
     * 增加积分  还是 减少积分  0 - 减少  1 - 加
     */
    private Integer inOrOut;

    private String remark;

    private String userRemark;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expireTime;

}
